package com.codermn.demo3;

import java.util.ArrayList;

/**
 * @author jxau_scf
 * @date 2021/5/31 - 16:36
 */
public class MyClass {
    private int num;
    private static int numStatic;

    public void method(){
        System.out.println("这是一个成员方法！");
        System.out.println("num：" + num);
        System.out.println("numStatic："+ numStatic);
    }
    public static void methodStatic(){
        System.out.println("这是一个静态方法！");
        System.out.println("numStatic：" + numStatic);
    }

    public static void myMethod(){
        System.out.println("自己的方法！");
    }

    public static void main(String[] args) {
        MyClass myClass = new MyClass();
        myClass.method();
        MyClass.methodStatic();
        methodStatic();
        MyClass.myMethod();

    }
}
